SET(POCO_DIR "Poco")

FIND_PATH(	POCO_INCLUDE_DIR Poco/Poco.h 
		PATHS 	${POCO_DIR}/include 
			/usr/local/include 
			/usr/include 
			/opt/local/include
	)

FIND_LIBRARY(	POCO_FOUNDATION 
             	NAMES PocoFoundation
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_FOUNDATIOND 
             	NAMES PocoFoundationd
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_NET_LIBRARY
             	NAMES PocoNet
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_NET_LIBRARYD 
             	NAMES PocoNetd
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )
        
FIND_LIBRARY(	POCO_NET_SSL_LIBRARY
             	NAMES PocoNetSSL
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_NET_SSL_LIBRARYD 
             	NAMES PocoNetSSLd
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_CRYPTO_LIBRARY
             	NAMES PocoCrypto
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_CRYPTO_LIBRARYD 
             	NAMES PocoCryptod
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_UTIL_LIBRARY
             	NAMES PocoUtil
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_UTIL_LIBRARYD
             	NAMES PocoUtild
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_DATA_LIBRARY
             	NAMES PocoData
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )
FIND_LIBRARY(	POCO_DATA_LIBRARYD
             	NAMES PocoDatad
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_XML_LIBRARY
             	NAMES PocoXML
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

FIND_LIBRARY(	POCO_XML_LIBRARYD
             	NAMES PocoXMLd
		PATHS 	${POCO_DIR}/lib 
			/usr/local/lib 
			/usr/lib 
			/opt/local/lib
	    )

IF (POCO_INCLUDE_DIR AND POCO_LIBRARY)
   SET(POCO_FOUND TRUE)
ENDIF (POCO_INCLUDE_DIR AND POCO_LIBRARY)

